<?php $this->_extends('_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>

<table>
<tr>
<td><h3><?php echo $article->article_name; ?></h3></td>
</tr>
<tr>
	<td>发表时间：作者：<?php echo $creator; ?></td>
</tr>

<tr><td><?php echo $article->article_content;?></td></tr>
</table>

<form action=<?php echo url('article/audit');?> method="post" name="mainform" onSubmit="
    if(this.result.value == 'pass')
    {
        this.reason.value == '';
        return true; 
    }
    else
    {
        if(this.reason.value == '')
        {
            alert('请输入退回文章的理由');
            return false;
        }
    }"
>
<input type="hidden" value="<?php echo $article->article_id;?>" name="aid">
<table>
<tr><td>
<input type="radio" value="pass" name="result" checked="checked">
<label>审核通过</label>
</td></tr>
<tr><td>
<input type="radio"  value="fail" name="result">
<label>审核失败</label>
</td></tr>
<tr><td>
<textarea name="reason" rows=5 cols=65 >请在这里输入审批意见</textarea>
</td></tr>
<tr><td>
<input type="submit" value="提交" >
</td></tr>
</table>
</form>
<?php $this->_endblock(); ?>
